package com.boot.feign;

import com.boot.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "cloud-product")
public interface ProductFeign {
    @GetMapping("/product/{id}")
    Result getProductById(@PathVariable Long id);
}
